package model;

public class BO_Mp3tag {
	private String title;
	private String artist;
	private int anho;
	private String genero;
	private String fullPath;		
	private int ratingWmp;
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getArtist() {
		return artist;
	}
	public void setArtist(String artist) {
		this.artist = artist;
	}
	public int getAnho() {
		return anho;
	}
	public void setAnho(int anho) {
		this.anho = anho;
	}
	public void setAnho(String anho) {
		this.anho = (anho=="")?(0):(Integer.parseInt(anho));
	}
	public String getGenero() {
		return genero;
	}
	public void setGenero(String genero) {
		this.genero = genero;
	}
	public String getFullPath() {
		return fullPath;
	}
	public void setFullPath(String fullPath) {
		this.fullPath = fullPath;
	}
	public int getRatingWmp() {
		return ratingWmp;
	}
	public void setRatingWmp(int ratingWmp) {
		this.ratingWmp = ratingWmp;
	}
	public void setRatingWmp(String ratingWmp) {
		this.ratingWmp = (ratingWmp=="")?(0):(Integer.parseInt(ratingWmp));
	}
	public String toString() {
		String result = this.getArtist() + " - ";
		result += this.getTitle() + " - ";
		result += this.getGenero() + " - ";
		result += this.getRatingWmp() + " - ";
		result += this.getAnho() + " - ";
		result += this.getFullPath();
		return result;
	}
}
